<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>销假页面</title>
</head>
<body bgcolor="#33FFFF">
	<table bgcolor="#0099CC">
		<tr>
			<td width="95%"><%@ include file="ban_head.jsp"%></td>
			<td width="3%"><%@ include file="logout.jsp"%></td>
			<td width="3%"><%@ include file="change_pw.jsp" %></td>
		</tr>
	</table>
	<hr>
	${message }
	<table border="1">
		<tr>
			<td>假条条目</td>
			<td>请假人姓名</td>
			<td>学号</td>
			<td>提交时间</td>
			<td>开始日期</td>
			<td>终止日期</td>
			<td>请假天数</td>
			<td>请假天数范围</td>
			<td>销假班主任审批</td>
			<td>销假系领导审批</td>
			<td>销假院领导审批</td>
			<td>请教原因</td>
			<td>销假允许</td>
			<td>销假拒绝</td>
		</tr>
		<c:if test="${count<0 }">
			<table align="center">
				<tr>
					<td>没有任何数据</td>
				</tr>
			</table>
		</c:if>
		<c:if test="${count>=0 }">
			<c:forEach var="x" begin="0" end="${count }" step="1">
				<tr>
					<td>${x+1 }</td>
					<td>${list_ac01[x].name }</td>
					<td>${list_ac01[x].username }</td>
					<td>${list_jiatiao[x].tj_date }</td>
					<td>${list_jiatiao[x].b_date }</td>
					<td>${list_jiatiao[x].e_date }</td>
					<td>${list_jiatiao[x].days }</td>
					<td><c:set var="level" value="${list_jiatiao[x].level }"></c:set>
						<c:choose>
							<c:when test="${level==1 }">
	     				一天到三天之内
	     			</c:when>
							<c:when test="${level==2 }">
	     				四到七天之内
	     			</c:when>
							<c:when test="${level==3 }">
	     				超过七天
	     			</c:when>
						</c:choose></td>
					<td><c:set var="status_in1"
							value="${list_jiatiao[x].status_in1 }"></c:set> <c:choose>
							<c:when test="${status_in1==0 }">
	     				未通过
	     			</c:when>
							<c:when test="${status_in1==1 }">
	     				通过
	     			</c:when>
							<c:when test="${status_in1==2 }">
	     				拒绝
	     			</c:when>
						</c:choose></td>
					<td><c:if test="${level==1 }">
	     			不用审批
	     		</c:if> <c:if test="${level!=1 }">
							<c:set var="status_in2" value="${list_jiatiao[x].status_in2 }" />
							<c:choose>
								<c:when test="${status_in2==0 }">
	     				          未通过
	     			    </c:when>
								<c:when test="${status_in2==1 }">
	     				        通过
	     			    </c:when>
								<c:when test="${status_in2==2 }">
	     				       拒绝
	     			    </c:when>
							</c:choose>
						</c:if></td>
					<td><c:if test="${level==1 or level==2 }">
	     			不用审批
	     		</c:if> <c:if test="${level==3 }">
							<c:set var="status_in3" value="${list_jiatiao[x].status_in3 }" />
							<c:choose>
								<c:when test="${status_in3==0 }">
	     				          未通过
	     			    </c:when>
								<c:when test="${status_in3==1 }">
	     				        通过
	     			    </c:when>
								<c:when test="${status_in3==2 }">
	     				       拒绝
	     			    </c:when>
							</c:choose>
						</c:if></td>
					<td><textarea rows="2" cols="20" disabled="disabled">${list_jiatiao[x].reason }</textarea>
					</td>
					<td><input type="button" value="销假"
						onclick="window.location.href='ban_x.do?jt_id=${list_jiatiao[x].jt_id}&action=yx'"
						${disabled } /></td>
					<td><input type="button" value="拒绝"
						onclick="window.location.href='ban_x.do?jt_id=${list_jiatiao[x].jt_id}&action=jj'"
						${disabled } /></td>
				</tr>
			</c:forEach>
		</c:if>

	</table>
</body>
</html>